<?php
//    try {
//        $dsn = 'mysql:host=localhost;dbname=yunbbs;charset=utf8';
//        $user = 'root';
//        $psw = '123456';
//        $pdo = new PDO($dsn, $user, $psw, array(
//            PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
//            ));
//    } catch (Exception $exc) {
//        echo '数据库连接失败' . $exc->getTraceAsString();
//    }
//    $sql="select * from yunbbs_users where name='{$name}'";
//    $result=$pdo->query($sql);
//    foreach ($result as $key => $value) {
//        $name=$value['name'];
//    }
?>
<html>
    <head>
        <link rel="shortcut icon" href="title.ico" type="image/x-icon" />
        <meta charset="UTF-8">
        <title>Mybbs</title>
        <style>
            body,html {
                width: 100%;
                height: 100%;
                box-sizing: border-box;
            }
            a {
                color:white;
                float: right;
                text-decoration: none;
                margin-right: 15px;
                line-height: 50px;
            }
        </style>
    </head>
    <body>
        <div style="width: 100%;height: 50px;background-color: #1A1C20;min-width:850px;">
            <label style="line-height:50px;color: white;font-size:35px;margin-left:20px;"><b>mybbs</b></label>
            <input style="width:100px;height:30px;margin-top:5px;background-color:#F3F4F6;" placeholder="站内搜索">
            <a href="index.php">退出</a>
            <a href="setting.php">设置</a>
            <label style="color:white;line-height:50px;font-size:20px;float:right;margin-right:10px;">zhangsan</label>
            <img src="title.ico" style="float:right;margin-right:10px; width:20px;height:20px;margin-top:15px;">
            <img src="<?php  ?>" style="float:right;margin-right:10px;">
        </div>
        <div style="width:100%;height: 75%;background-color: #CCCCCC;">
            <div id="left" style="float:left;width:60%;height:90%;margin-left:20px;">
                <div style="background-color:#F3F4F6;height: 60px;border:1px solid black;margin-top: 15px;">
                    <p style="background-color: #CCCCCC;line-height: 40px;margin-top: 0px;"><b>&nbsp;mybbs>>最近更新·PHP905</b>
                    <button style="float:right;margin-top:10px;margin-right:10px;">+发新帖</button>
                    </p>
                    
                </div>
            </div>
            <div id="right" style="float:right;width:30%;min-width:230px;height:80%;margin-right:20px;">
                <div style="margin-top:15px; background-color:#F3F4F6;width: 100%;min-height:70px;height: 25%;border:1px solid black;">
                    <p style="line-height:40px;margin-top: 0px;background-color: #CCCCCC;"><b>&nbsp;最近添加的分类</b></p>
                    <button style="margin-left:15px;font-size: 18px;">分类管理</button>
                    <button style="margin-right:15px;font-size: 18px;">网站设置</button>
                    <button style="margin-left:15px;margin-top:8px;font-size: 18px;">用户管理</button>
                    <button style="margin-right:15px;font-size: 18px;">链接管理</button>
                </div>
                <div style="margin-top:15px; background-color:#F3F4F6;width: 100%;height: 20%;border:1px solid black;">
                    <p style="line-height:40px;margin-top: 0px;background-color: #CCCCCC;"><b>&nbsp;最近添加的分类</b></p>
                    <button style="margin-left:15px;font-size: 18px;">默认分类</button>
                </div>
                <div style="margin-top:10px; background-color:#F3F4F6;width: 100%;height: 20%;border:1px solid black;">
                    <p style="line-height:40px;margin-top: 0px;background-color: #CCCCCC;"><b>&nbsp;链接</b></p>
                    <button style="margin-left:15px;font-size: 18px;">MyBBS</button>
                </div>
                <div style="margin-top:10px; background-color:#F3F4F6;width: 100%;height: 35%;border:1px solid black;">
                    <p style="line-height:40px;margin-top: 0px;background-color: #CCCCCC;"><b>&nbsp;站点运行信息</b></p>
                    <p style="margin-left:10px;">会员:1</p>
                    <p style="margin-left:10px;">分类:1</p>
                    <p style="margin-left:10px;">帖子:0</p>
                    <p style="margin-left:10px;">回复:0</p>
                </div>
            </div>
        </div>
        <div style="width: 100%;height: 15%;background-color:#F3F4F6;border:1px solid black;">
            <div style="width: 100%;height:60px;background-color: #CCCCCC;">
                <div style="width: 200px;height: 60px;margin-left: 20px;">
                    <p style="line-height: 30px;margin-left:5px;">&copy;Copynight <b>mybbs-PHP905</b> Powered by <b>MyBBS v1.04</b></p>
                </div>
            </div>
        </div>
    </body>
</html>
